home *** CD-ROM | disk | FTP | other *** search
- // Figure 5 for "A Little CAD with C++"
- // Copyright 1988 Bruce Eckel
- // Permission required to distribute source
-
- // file: circle.hpp
- #ifndef CIRCLE_HPP
- #define CIRCLE_HPP
- #include "cadshape.hpp"
-
- #define x_radius 10
- #define y_radius 10
-
- class circle : public cadshape {
- public:
- void draw();
- circle(unsigned x, unsigned y) : ()
- { x_center = x; y_center = y; draw(); }
- void erase();
- ~circle() { erase(); }
- };
- #endif CIRCLE_HPP
-